var express = require('express');
var router = express.Router();

//登录注册模块路由
require("./login/login-router").loginRouter(router);

//文件上传路由
require("./upload/upload-router").uploadRouter(router);

//通用路由
//require("./common/common-router").commonRouter(router);

//PC路由
require("./pte/pte-router").pteRouter(router);
require("./pte/pte-api").pteAPI(router);

//短信相关
require("./sms/sms-router").smsRouter(router);
require("./sms/sms-api").smsAPI(router);

//用户相关
require("./user/user-router").userRouter(router);
require("./user/user-api").userAPI(router);

//角色相关
require("./role/role-router").roleRouter(router);
require("./role/role-api").roleAPI(router);

//菜单相关
require("./menu/menu-router").menuRouter(router);
require("./menu/menu-api").menuAPI(router);

//后台用户相关
require("./adminuser/adminuser-router").adminuserRouter(router);
require("./adminuser/adminuser-api").adminuserAPI(router);

//工人相关
require("./worker/worker-router").workerRouter(router);
require("./worker/worker-api").workerAPI(router);

//预算相关

require("./budget/budget-router").budgetRouter(router);
require("./budget/budget-api").budgetAPI(router);

//学装修
require("./study/study-router").studyRouter(router);
require("./study/study-api").studyAPI(router);

//商城相关
require("./mall/mall-router").mallRouter(router);
require("./mall/mall-api").mallAPI(router);

module.exports = router;
